package com.wangyk.user.thymeleafproject.service;

import com.wangyk.rabbitmqcommon.model.project.ProductInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用其它服务的接口，name为其它服务的名称
 * Feign本质还是Http，内部使用了Ribbon作为负载均衡
 * Feign结合Hystrix使用
 * */
@FeignClient(name = "thymeleaf", path = "/thymeleaf/productinfopro")
public interface ProductInfoService
{
    @RequestMapping("/select_by_primary_key")
    ProductInfo selectByPrimaryKey(@RequestParam("productInfoId") Integer productInfoId);
}
